let mutations = {
    SettlementData(state, data) {
        state.SettlementData = data
    },
    getFreight(state, price) {
        state.getFreight = price
    },
    treeId(state, id) {
        state.treeId = id
    },
    firstNewNav(state, data) {
        state.firstNewNav = data
    },
    newDetails(state, data) {
        state.newDetails = data
    },
    listLoading(state, bl) {
        state.listLoading = bl
    },
    newleftgoto(state, obj) {
        state.newleftgoto = obj
    },
    leftIndex(state, index) {
        state.leftIndex = index
    },
    prove(state, prove) {
        state.prove = prove
    },
    Taxpayer(state, bl) {
        state.Taxpayer = bl
    },
    getInformationCenterData(state, data) {
        state.getInformationCenterData = data
    },
    changeBrand(state, id) {
        state.changeBrand = id
    },

    homeShow(state, data) {
        state.homeShow = data
    },
    godetailname(state, data) {
        state.godetailname = data
    },
    godetailname2(state, data) {
        state.godetailname2 = data
    },

    title(state, data) {
        state.title = data
    },
    HandleNodeClick(state, data) {
        state.HandleNodeClick = {}
        state.HandleNodeClick = { data }
    },
    // 退货编码
    ReturnNumber(state, data) {
        state.ReturnNumber = data
    },

    // 订单详情的订单号
    OrderDetailsOrderNo(state, onderNo) {
        state.OrderDetailsOrderNo = onderNo
    },
    // 退换货的订单号
    ReturnedGoods(state, { goods, order_no, create_at }) {
        console.log(`------------------${goods.id}`)
            // this.$set(state.ReturnedGoods, goods, goods) // 对象
            // this.$set(state.ReturnedGoods, order_no, order_no) // 对象
            // this.$set(state.ReturnedGoods, create_at, create_at) // 对象

        state.ReturnedGoods = { goods, order_no, create_at }
    },
    // 退货数量 存储
    returnGoodsNum(state, value) {
        state.returnGoodsNum = value
    },
    MarketDataPage(state, page) {
        state.MarketDataPage = page
    },
    MarketDataId(state, id) {
        state.MarketDataId = id
    },
    // 发票按钮的选择  InvoiceInfoBtn为 0 是不开发票 1 是普通发票
    InvoiceInfoBtn(state, data) {
        state.InvoiceInfoBtn = data
    },
    // 身份证号
    id_card(state, data) {
        state.id_card = data
    },
    invoiceRise(state, data) {
        state.invoiceRise = data
    },
    // 报价单数据
    QuotationData(state, data) {
        state.QuotationData = data
    },
    // 产品详情页面的楼层的数据保存
    productListfloor(state, data) {
        state.productListfloor = data
    },
    flag(state, flag) {
        state.flag = flag
    },
    // 微信支付的二维码保存
    qrcode(state, data) {
        state.qrcode = data[0]
        state.orderPrice = data[1]
    },
    // 首页王冠展示数据
    homeDisplay(state, data) {
        state.homeDisplay = data
    },
    nav(state, data) {
        state.homeNav = data
    },



    bannerNav(state, data) {
        state.bannernav = data
    },

    // 登录验证的token 部分
    set_token(state, token) {
        state.token = token
        localStorage.token = token
            // if(state.automaticLogon){
            //   localStorage.token = token
            // }
    },
    // 用户信息的存储的函数
    UserInfor(state, data) {
        state.UserInfor = data
        localStorage.UserInfor = data
    },
    // 保存用户名字 信息 手机号码 邮箱地址
    doSelfInfos(state, data) {
        state.doSelfInfos = data
    },

    // 删除token的方法
    del_token(state) {
        state.token = ""
        localStorage.removeItem("token")
        state.UserName = ""
        state.UserInfor = ""
    },

    // 删除用户信息的的方法
    del_UserInfor(state) {
        state.UserInfor = ""
        localStorage.removeItem("UserInfor")
    },
    // 删除 用户名
    del_UserName(state) {
        state.UserName = ""
    },

    Verification(state) {
        state.Verification = 1
    },

    initVerification(state) {
        state.Verification = 0
    },

    // FooterDetails.vue 点击事件的key值存储
    footerId(state, id) {
        state.FooterDetailsId = id
    },
    // 联系方式的信息
    contact_info(state, data) {
        state.contact_info = data
    },
    // 购物车数量
    shopping_num(state, data) {
        state.shopping_num = data
    },

    // 详情页的id 和 pid
    IDPID(state, data) {
        state.id = data.id
        state.pid = data.pid
            // state.item = data.item
    },
    // 退款四步走的页面的传参的初始化页面
    InitReturnStatePage(state, data) {
        state.InitReturnStatePage = data
    },
    // 点击了步骤1的提交触发的事件
    changeStep(state, step) {
        state.stepshow = step
    },
    // 求购中心的页面的显示的控制
    sonPage(state, Boolean) {
        state.sonPage = Boolean
    },
    // productList 页面的传进来的id的存储
    listId(state, id) {
        state.listId = id
    },
    // productList 页面的数据的存储
    selectList(state, lists) {
        state.selectList = lists
    },
    // 求购中心传进来的id的保存
    PurchaseInformationId(state, id) {
        state.PurchaseInformationId = id
    },
    // 求购中心信息的保存
    PurchaseInformation(state, info) {
        state.PurchaseInformation = info
    },
    // 求购详情页面的 轮播图上的信息
    comment(state, comment) {
        state.comment = comment
    },

    // 个人用户企业用户区分
    userStatus(state, status) {
        state.userStatus = status
    },
    // 用户头像
    HeadPortrait(state, data) {
        state.HeadPortrait = data
    },
    // 用户名字
    UserName(state, data) {
        state.UserName = data
    },
    // 企业的营业执照
    license(state, data) {
        state.license = data
    },
    // shoppingCartDataDetails(state, data) {
    //   state.shoppingCartDataDetails = data
    // },
    // 订单号的改变
    order_no(state, data) {
        state.order_no = data
    },
    // 地址选择发生改变时候激发次函数保存更改后的地址信息  以便后期来进行操作 同收货地址的操作
    changesAddress(state, changesAddress) {
        state.changesAddress = changesAddress
    },
    // 精选商品的id的 存储
    cateId(state, cateId) {
        state.cateId = cateId
    },
    getindex(state, index) {
        state.getindex = index
    },

}

export default mutations